/**
 * Project oo_thread
 */


#ifndef _CONDITION_H
#define _CONDITION_H

#include <pthread.h>
class Mutex;
class Condition {
public: 
    
/**
 * @param Mutex &
 */
Condition(Mutex & mux);
~Condition();
Condition();
void wait();
    
void notify();
    
void notifyAll();
    
private: 
    Mutex & _mutex;
    pthread_cond_t _cond;
};

#endif //_CONDITION_H
